{extend name="/base"}
{block name="body"}
		<div class="layui-card">
			<div class="layui-card-body">
				<table id="power-table" lay-filter="power-table"></table>
			</div>
		</div>
		
		<script type="text/html" id="power-toolbar">
			<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
				<i class="layui-icon layui-icon-add-1"></i>
				新增
			</button>
		</script>
		
		<script type="text/html" id="power-bar">
			<button class="pear-btn pear-btn-primary pear-btn-sm" lay-event="edit"><i class="layui-icon layui-icon-edit"></i></button>
			<button class="pear-btn pear-btn-danger pear-btn-sm" lay-event="remove"><i class="layui-icon layui-icon-delete"></i></button>
		</script>
		
		<script type="text/html" id="power-type">
			{{#if (d.type == '0') { }}
			<span>目录</span>
			{{# }else if(d.type == '1'){ }}
			<span>菜单</span>
			{{# } }}
		</script>
		<script id="status" type="text/html">
			{{# if (d.status==1) { }}
			<a class="layui-btn layui-btn-xs" lay-event="enabled">
				启用
			</a>
			{{# } else { }}
			<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disabled">
				禁用
			</a>
			{{# } }}
		</script>
		{/block}
		{block name="js"}
		<script src="__ADMIN__/layui/layui.js"></script>
		<script src="__ADMIN__/module/admin/permission/index.js"></script>
		{/block}